package com.turtle3d.user.grammars;

import com.turtle3d.formallanguage.grammar.Grammar;
import com.turtle3d.formallanguage.parser.SimpleParser;
import com.turtle3d.formallanguage.symbol.SymbolFactory;

public class PeanoGosper2D extends Grammar
{

	@Override
	public void define()
	{	
		setAxiom(SymbolFactory.getSymbolFactory().createSymbolofClass("X"));
		addProduction(SimpleParser.parseProduction("X->X+YF++YF-FX--FXFX-YF+"));
		addProduction(SimpleParser.parseProduction("Y->-FX+YFYF++YF+FX--FX-Y"));
	}
	
	public void setRequiredParameters(){
		setRequiredParameter("turnAngle", 60f);
	}

}
